<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hrms.pojo.InviteJob" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加招聘信息管理记录</title>
</head>
<body>
	<script type="text/javascript" src="<%=request.getContextPath() %>/jquery-3.1.1.min.js"></script>
	<script type="text/javascript">
		function checkinput(){
			var name=$("#name").val();
			if($.trim(name)==""){
				alert("姓名不能为空");
				return false;
			}
			var age=$("#age").val;
			if($.trim(age)==""||isNaN(age)==true){
				alert("年龄不合法");
				return false;
			}			
			return true;
		}
	</script>
	<form action="<%=request.getContextPath()%>/invitejob/add" method="post" onsubmit="return checkinput()">
		<table>
			<tr>
				<td>姓名:</td>
				<td><input type="text" name="name" id="name"><span style="color:red;">*</span></td>
			</tr>
			<tr>
				<td>姓别:</td>
				<td>
					<select name="sex">
						<option value="男">男</option>
						<option value="女">女</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>年龄:</td>
				<td>
					<input type="text" name="age" id="age"><span style="color:red;">*</span>
				</td>
			</tr>
			<tr>
				<td>出生年月:</td>
				<td>
					<input type="text" name="born" id="born"><span style="font-size: 12px">格式：yyyy-MM-dd</span>
				</td>
			</tr>
			<tr>
				<td>工作:</td>
				<td>
					<input type="text" name="job" id="job">
				</td>
			</tr>
			<tr>
				<td>专业:</td>
				<td>
					<input type="text" name="specialty" id="specialty">
				</td>
			</tr>
			<tr>
				<td>工作经历:</td>
				<td>
					<input type="text" name="experience" id="experience">
				</td>
			</tr>
			<tr>
				<td>教育背景:</td>
				<td>
					<input type="text" name="education" id="education">
				</td>
			</tr>
			<tr>
				<td>毕业院校:</td>
				<td>
					<input type="text" name="graduateSchool" id="graduateSchool">
				</td>
			</tr>
			<tr>
				<td>联系电话:</td>
				<td>
					<input type="text" name="tel" id="tel">
				</td>
			</tr>
			<tr>
				<td>地址:</td>
				<td>
					<input type="text" name="address" id="address">
				</td>
			</tr>
			<tr>
				<td>创建时间:</td>
				<td>
					<input type="text" name="createTime" id="createTime">
				</td>
			</tr>
			<tr>
				<td>备注:</td>
				<td>
					<input type="text" name="remarks" id="remarks">
				</td>
			</tr>
			<tr>
				<td>是否就业:</td>
				<td>
					<input type="text" name="isHire" id="isHire"><span style="color:red;">*</span>
				</td>
			</tr>
		</table>
		<input type="submit" value="提交">&nbsp;&nbsp;<input type="reset" value="重置">
	</form>
	<h2>
		<a href="<%=request.getContextPath()%>/admin/function">返回功能页面</a>
	</h2>
</body>
</html>